package com.zhu.classfile.attribute;

import java.nio.ByteBuffer;

public class UnparsedAttribute implements AttributeInfo{
    private  String name;
    private  int length;
    private  byte[] info;

    public UnparsedAttribute(String name, int length) {
        this.name = name;
        this.length = length;
        this.info = new byte[length];
    }
    @Override
    public void readInfo(ByteBuffer reader) {
        // 跳过未知属性内容
        reader.get(info);
    }

}
